/*
 * Author: 黄荣基
 * Date: 2020-11-16 10:47:43
 * LastEditors: 黄荣基
 * LastEditTime: 2020-11-25 13:55:04
 */
import request from '@/utils/request';
// import qs from "qs"

// 创建接口
const news = {
  // 获取新闻列表数据
  getNewsList(params) {
    return request.get('/api/news', params);
  },
  // 获取详情页数据
  getNewsDetail(params) {
    return request.get(`api/news/36kr/${params}`);
  }
};

export default news;
